// initial state
const state = () => ({
    tsForm: LocalStorage.get(TS_FORM) || '',
    addressObj: LocalStorage.get(ADDRESS_OBJ) || {},
})

// getters
const getters = {}

// actions
const actions = {}

// mutations
const mutations = {

    updateForm(state, data) {
        state.tsForm = data;
    },
    updateAddress(state, data) {
        state.addressObj = data;
    },

}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations,
}
